package internal

import (
	"github.com/gin-gonic/gin"
	"log"
	"log/slog"
	"time"
	"vitepress-serve/internal/controller"
)

func Main() {
	slog.Info("*** vitepress serve start...")
	time.Local = time.FixedZone("CST", 8*3600) //时区：东八区

	engine := gin.Default()
	err := controller.Router(engine)
	if err != nil {
		panic(err)
	}
	log.Fatal(engine.Run("0.0.0.0:80"))
}
